#ifndef MEASUREPAGECHARTS_H
#define MEASUREPAGECHARTS_H
#include <QtCharts>
#include "qchart.h"
#include <QtCharts/QChartView>
#include <QtCharts/QPieSeries>
#include <QtCharts/QPieSlice>
#include <QtCharts/QAbstractBarSeries>
#include <QtCharts/QPercentBarSeries>
#include <QtCharts/QStackedBarSeries>
#include <QtCharts/QBarSeries>
#include <QtCharts/QBarSet>
#include <QtCharts/QLineSeries>
#include <QtCharts/QSplineSeries>
#include <QtCharts/QScatterSeries>
#include <QtCharts/QAreaSeries>
#include <QtCharts/QLegend>
#include <QtCharts/QBarCategoryAxis>
#include <QtCharts/QValueAxis>
#include <QtCharts/QChartGlobal>

class MeasurePageCharts
{
public:
    QLineSeries *Series_wave;


    MeasurePageCharts(int sample,QString waveName);
    ~MeasurePageCharts();
    void InitialAxis_Chart();
    QChart *CreateLineChart();
    void Update_Data(bool iseleOff,double ppgData);
    void setWaveyRanger(float max, float min);
    void clearWave();
private:
    int LineChartLen_X;

    QColor *Chart_Y_Axis_Line_Color;//y轴Axis颜色
    QFont *Font_Chart_LabelsFont,*Font_Chart_TitleFont;
    QValueAxis *xAxis_Wave;
    QValueAxis *yAxis_Wave;
    int wave_flag;
    int sampleRate;
    QString waveName;
    float y_maxv,y_minv;
    bool isAuto;



};

#endif // MEASUREPAGECHARTS_H
